home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Writing Formatted Text
- Sent: 6/12/96 5:00 AM
- Received: 6/12/96 8:31 AM
- From: Serge Froment, sfroment@odyssee.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Now that I am done reading, I am trying to write. I thought it would be
- >simpler, but I have problem connecting FW_CMemoryWriter and
- >FW_CWritableStream together. I have my data object write itself onto a
- >FW_CMemoryWriter, but then how can I get the buffer to pass to
- >FW_CWritableStream? Of course, I could pass my own buffer to
- >FW_CMemoryWriter, but I don't know in advance the length of the text my
- >data object will write onto the text writer.
-
- I have solved my own problem: I use a FW_CStringWriter and then I use
- FW_CString::RevealBuffer to stream the text. It is very interesting that my
- data object ends up writing strings into a string...
-
- Serge
-
-